<?php

namespace App\Services\Fund;

use App\Services\ProjectValidate;

/**
 *
 * Class ValidateCurrencySplitLog
 * @package App\Services\Fund
 */
class ValidateCurrencySplitLog extends ProjectValidate
{

    /**
     * 自定义子类初始化
     * @param array $initData
     * @return mixed
     */
    public function initValidate($initData = [])
    {
        // TODO: Implement initValidate() method.
    }


    /**
     * @var array 用户模块的验证集合
     */
    public $rules = [
        'user_ids'        => 'min:1|max:256',
        'user_id'         => 'integer|min:1',
        'app_id'          => 'integer|min:1',

       // 'currency'        => 'float|min:1',//'currency' => ['float', 'egt' => '0.0001'],
        'public_key'      => 'max:60',
        'lock_key'        => 'min:6|max:20',
        'get_key'         => 'min:6|max:20',
        'create_ip'       => 'ip',
        'update_ip'       => 'ip',
        'app_id'          => 'integer|min:1',
        'opposite_id'     => 'integer|min:1|different:user_id',
        'user_id'         => 'in:0,1,2',
        'user_info'       => 'regex:/^{.*}$',
         'opposite_info'  => 'regex:/^{.*}$',
    ];

    

    public $messages = [
       
    ];

    /**
     * @var array 上面规则中定义的 key 的名字
     */
    public $attributes = [
      
    ];

   
}